<template>
  <div>
    <button @click="isShow = !isShow">是否显示</button>
    <transition
      appear
      name="animate__animated animate__bounce animate__delay-2s"
      enter-active-class="animate__bounceIn"
      leave-active-class="animate__bounceOut"
    >
      <h1 class="h1" v-show="isShow">UseAnimateCss 实现动画效果</h1>
    </transition>
  </div>
</template>

<script>
import 'animate.css'

export default {
  name: 'UseAnimateCss',
  data() {
    return {
      isShow: true
    }
  }
}
</script>

<style lang="less" scoped>
.h1 {
  background-color: orange;
}

</style>